$width:100%;
$height:100%;
@mixin keyframes($animationName) {
    @-webkit-keyframes #{$animationName} {
        @content;
    }
    @-moz-keyframes #{$animationName} {
        @content;
    }
    @-o-keyframes #{$animationName} {
        @content;
    }
    @keyframes #{$animationName} {
        @content;
    }
}

@include keyframes(loadingMove) {
    0% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.2);
    }
    100% {
        transform: scaleY(1);
    }
}

@keyframes musicMove {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes selfture {
    50% {
        transform: rotateY(360deg);
    }
    100% {
        transform: rotateY(720deg);
    }
}

@keyframes arrowMove {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    50% {
        opacity: 1;
        transform: translate(0, -30px);
    }
    100% {
        opacity: 0;
        transform: translate(0, -50px);
    }
}

@-webkit-keyframes arrowMove {
    0% {
        opacity: 0;
        -webkit-transform: translate(0, 0);
    }
    50% {
        opacity: 1;
        -webkit-transform: translate(0, -30px);
    }
    100% {
        opacity: 0;
        -webkit-transform: translate(0, -50px);
    }
}

html,
body {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.main {
    position: relative;
    width: $width;
    height: $height;
    .loading {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 20;
        background: white;
        ul {
            position: absolute;
            left: 50%;
            top: 40%;
            width: 0.9rem;
            margin-left: -45px;
            li {
                width: 0.05rem;
                height: 0.4rem;
                margin-right: 0.1rem;
                background: #0F0;
                float: left;
                animation: loadingMove 2s linear infinite;
            }
            li:nth-of-type(1) {
                animation-delay: -0s;
            }
            li:nth-of-type(2) {
                animation-delay: -0.2s;
            }
            li:nth-of-type(3) {
                animation-delay: -0.4s;
            }
            li:nth-of-type(4) {
                animation-delay: -0.6s;
            }
            li:nth-of-type(5) {
                animation-delay: -0.8s;
            }
            li:nth-of-type(6) {
                animation-delay: -1s;
            }
        }
        div {
            font-size: 0.3rem;
            color: #0F0;
            width: 100%;
            text-align: center;
            top: 50%;
            position: absolute;
        }
    }
    #canvas {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 110;
    }
    .swiper-container {
        width: $width;
        height: $height;
        margin-left: auto;
        margin-right: auto;
        .swiper-slide {
            width: $width;
            height: $height;
            text-align: center;
            font-size: 0.3rem;
            background: #fff;
            img {
                display: block;
                width: 100%;
                height: 100%;
            }
        }
        #li1 {
            background: url(../images/b.png) no-repeat center;
            background-size: cover;
            .li1Child {
                font-size: 0.3rem;
                text-align: left;
                color: white;
                position: absolute;
                left: 20%;
                top: 65%;
            }
        }
        #li2 {
            background: url(../images/c.png) no-repeat center;
            background-size: cover;
            .li2Child li {
                width: 0.9rem;
                height: 0.9rem;
                margin-left: -45px;
                left: 50%;
                top: 40%;
                position: absolute;
                margin-left: -30px;
                border-radius: 100%;
                transition-duration: 2s;
                font-size: 0.3rem;
                line-height: 0.6rempx;
                color: #fff;
            }
        }
        .swiper-slide-active#li2 li {
            transform: rotate(720deg);
        }
        .swiper-slide-active#li2 .ball1 {
            top: 30%;
        }
        .swiper-slide-active#li2 .ball2 {
            left: 20%;
            top: 40%;
        }
        .swiper-slide-active#li2 .ball3 {
            left: 80%;
            top: 40%;
        }
        .swiper-slide-active#li2 .ball4 {
            left: 20%;
            top: 60%;
        }
        .swiper-slide-active#li2 .ball5 {
            left: 80%;
            top: 60%;
        }
        .swiper-slide-active#li2 .ball6 {
            top: 75%;
        }
        #li3 {
            background: url(../images/d.png) no-repeat center;
            background-size: cover;
            .li3Child {
                width: 4.6rem;
                height: 2.22rem;
                background: url(../images/d1.png) no-repeat;
                background-size: cover;
                position: absolute;
                left: 50%;
                margin-left: -230px;
                bottom: 20%;
                transition-duration: 2s;
            }
        }
        /*.swiper-slide-active#li3 .li3Child {
            -webkit-animation: 1s linear;
            animation: 1s linear selfture;
        }*/
        .swiper-slide-active#li3 .li3Child {
            transform: rotateY(720deg);
        }
        #li4 {
            background: url(../images/e.png) no-repeat center;
            background-size: cover;
            .li4Child li {
                color: white;
                font-size: 0.22rem;
                border: 2px #FFF solid;
                border-radius: 5px;
                box-shadow: 0 0 0.15rem #FFF;
                word-wrap: break-word;
                position: absolute;
                overflow: hidden;
                padding: 0.05rem;
                box-sizing: border-box;
                width: 0;
                height: 0;
                transition-duration: 1s;
            }
        }
        .swiper-slide-active#li4 .li4Child li {
            transform: scale(2);
            font-size: 0.1rem;
            border: 2px #FFF solid;
            border-radius: 5px;
            box-shadow: 0 0 0.15 #FFF;
            word-wrap: break-word;
        }
        .swiper-slide-active#li4 .li4Child li:nth-of-type(1) {
            width: 1rem;
            height: 1.25rem;
            left: 10%;
            top: 20%;
        }
        .swiper-slide-active#li4 .li4Child li:nth-of-type(2) {
            width: 1.4rem;
            height: 0.8rem;
            left: 50%;
            top: 18%
        }
        .swiper-slide-active#li4 .li4Child li:nth-of-type(3) {
            width: 0.55rem;
            height: 1.45rem;
            left: 76%;
            top: 39%;
        }
        
    }
    #music {
        width: 0.7rem;
        height: 0.7rem;
        background: url(../images/music.png) no-repeat;
        background-size: cover;
        position: absolute;
        top: 0.2rem;
        right: 0.2rem;
        z-index: 8;
    }
    .active {
        animation: 1s linear infinite musicMove;
        -webkit-animation: 1s linear infinite musicMove;
    }
    #arrow {
        width: 90px;
        height: 52px;
        background: url(../images/arr.png) no-repeat;
        position: absolute;
        left: 50%;
        bottom: 15px;
        margin-left: -45px;
        z-index: 8;
        animation: 1s infinite arrowMove;
        -webkit-animation: 1s infinite arrowMove;
    }
}
